
public class TestGame {
	public static void main(String[] args) {
//		System.out.println(Math.floor(12.5));//向下取整，也可以使用强制类型转换
//		System.out.println(Math.round(12.5));//四舍五入
//		Math.ceil()向上取整
		Tools.checkRate(5);
		Player player = new Player("黑暗斗士");
//		System.out.println(player.getUpgradeExp(100,20,5));
		player.show();
		Enemy e1 = new Enemy("戴帽", "僵尸");
		Enemy e2 = new Enemy("恐怖", "吸血鬼");
		Enemy e3 = new Enemy("强壮", "狼人");
		Enemy e4 = new Enemy("风度翩翩", "僵尸");
		Enemy e5 = new Enemy("死亡", "狼人");
		Enemy e7 = new Enemy("狂暴", "狼人");
		Enemy e8 = new Enemy("凶残", "狼人");
		Enemy e9 = new Enemy("黑山老妖","Boss");
		player.fight(e1);
		player.fight(e2);
		player.fight(e3);
		player.fight(e4);
		player.fight(e5);
		player.fight(e7);
//		player.fight(e8);
		player.fight(e9);
		player.show();
		e9.show();
	}
}
